package com.kay;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

/**
 * @Description:
 * @Author: Kay
 * @CreateDate: 2021/8/31$ 21:50$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/8/31$ 21:50$
 */
public class DubboServiceApplication {
    public static void main(String[] args) throws IOException {
        AnnotationConfigApplicationContext configApplicationContext = new AnnotationConfigApplicationContext(RegistryConfig.class);
        configApplicationContext.start();
        System.in.read();
    }


    @Configuration
    @EnableDubbo(scanBasePackages = "com.kay.service.impl")
    @PropertySource("classpath:/dubbo-provider.properties")
    static class RegistryConfig {

    }

}
